package com.itheima.d4_enum;

public class Test4 {
    public static void main(String[] args) {
        showInfo(Sex.BOY);
    }

    public static void showInfo(Sex sex){
        switch (sex){
            case BOY:
                System.out.println("推荐男生喜欢的书籍");
                break;
            case GIRL:
                System.out.println("推荐女生喜欢的书籍");
                break;
        }
    }
}
